package com.vrp3d.domain.dto.showroom;

import com.vrp3d.common.consts.CommonConst;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 展厅搜索用dto
 *
 * @author vrp3d
 */
@Data
public class ShowroomSearchDTO extends ShowroomListReviewDTO implements Serializable {
    private static final long serialVersionUID = -5281610463280439941L;

    @ApiModelProperty(value = "搜索用户输入字段")
    @Size(max = CommonConst.NAME_LENGTH, message = "展厅名称长度限制1-" + CommonConst.NAME_LENGTH)
    private String name;

    @ApiModelProperty(value = "展厅类型id 请求/showroom/getTypeList获取")
    private Integer type;

    @ApiModelProperty(value = "展厅状态")
    @Range(max = 1, message = "展厅状态值不符合规范")
    private Integer status;
}
